﻿<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>超市管理系统</title>
    <link rel="stylesheet" href="css/public.css"/>
    <link rel="stylesheet" href="css/style.css"/>
    <style>
        button {
            padding: 7px 30px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        button:hover {
            background-color: #45a049;
        }

        button:active {
            background-color: #3e8e41;
        }
    </style>
</head>
<body>
<!--头部-->
<header class="publicHeader">
    <h1>超市管理系统</h1>

    <div class="publicHeaderR">
        <p><span>下午好！</span><span style="color: #fff21b"> Admin</span> , 欢迎你！</p>
        <a href="logout">退出</a>
    </div>
</header>
<!--时间-->
<section class="publicTime">
    <span id="time">2020年1月1日 11:11  星期一</span>
    <a href="#">温馨提示：为了能正常浏览，请使用高版本浏览器！（IE10+）</a>
</section>
<!--主体内容-->
<section class="publicMian ">
    <div class="left">
        <h2 class="leftH2"><span class="span1"></span>功能列表 <span></span></h2>
        <nav>
            <ul class="list">
                <li><a href="billList.html">账单管理</a></li>
                <li id="active"><a href="providerList.html">物品管理</a></li>
                <li><a href="userList.html">用户管理</a></li>
                <!-- <li><a href="password.html">密码修改</a></li> -->
                <li><a href="logout">退出系统</a></li>
            </ul>
        </nav>
    </div>
    <div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>物品管理页面 >> 物品添加页面</span>
        </div>
        <div class="providerAdd">
            <form action="/snack-sale/upload" method="post" enctype="multipart/form-data">
                <!--div的class 为error是验证错误，ok是验证成功-->
                <div class="">
                    <label for="name">名称:</label>
                    <input type="text" id="name" name="name" required>
                    <span>*请输入物品名称</span>
                </div>
                <div>
                    <label for="name">类别(1:零食, 2:水果):</label>
                    <input type="text" id="category_id" name="category_id" required>
                    <span >*请输入物品类别</span>
                </div>
                <div>
                    <label for="price">价格:</label>
                    <input type="text" id="price" name="price" required>
                    <span>*请输入价格</span>
                </div>
                <div>
                    <label for="inventory">库存:</label>
                    <input type="text" id="inventory" name="inventory" required>
                    <span>*请输入库存</span>
                </div>
                <div>
                    <label>图片:</label>
                    <input type="file" name="image" accept="image/*" required>
                    <span>*请输入图片</span>
                </div>
                <div class="providerAddBtn">
                    <!--<a href="#">保存</a>-->
                    <!--<a href="providerList.html">返回</a>-->
                    <!-- <input tyvalue="保存"/> -->
                    <button>保存</button>
                    <input type="button" value="返回" onclick="history.back(-1)"/>
                </div>
            </form>
        </div>
    </div>
</section>
<footer class="footer">
</footer>
<script src="js/time.js"></script>

</body>
</html>